package com.bibimaya.auto.mapper.dao.annotation;

import com.bibimaya.auto.mapper.dao.constant.Const;
import com.bibimaya.auto.mapper.dao.registry.EnableAutoMapperRegistry;
import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 此注解一定要放到 @EnableTSharding 之前
 * create by lijianwei
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
@Import({EnableAutoMapperRegistry.class})
public @interface EnableAutoMapper {

    String[] mapperPackages() default {};

    String defaultMapperSuffix() default Const.DEFAULT_MAPPER_SUFFIX;

    String defaultEntitySuffix() default Const.DEFAULT_ENTITY_SUFFIX;

}
